[NTG-context] Define a new command that inherits from multiple other command options

2024-04-25 Thread ai2472206007
=\outermarginwidth] \setupmargindata [SidenoteContent][stack=yes,style=\it] \def\sidenotemark{\rawcountervalue[SidenoteMarkNumber]} \def\convertsidenotemark#1{\high{\convertnumber{#1}{\sidenotemark}}} \def\sidenote{\dosingleempty\dosidenote} \def\dosidenote[#1]#2{% \getparameters[SMsidenote

[NTG-context] Re: last page number for a list

2024-04-03 Thread Alan Bowen
have \reference[\lastpagenumber]{} at the end of the file. But this gives me ??–viii (the viii is correct and interactive) for the FMTitle. Sadly the entries for all my other Titles (SourceTitle, StudyTitle...) is ??–viii. (Each title is a modified chapter.) Curiously, \at[\Reference]–\convertnumber

[NTG-context] Re: usage of conversion in \date

2023-11-29 Thread Hans Hagen
\\ier" else context(s) end end } \stopluacode \def\ier{\highordinalstr{er}} \mainlanguage[fr] \defineconversion[frd][\FRdate] \setuplanguage[fr][date={day:frd,\ ,month,\ ,year}] \starttext Conversion: \convertnumber{frd}{1}, \convertnumber{frd}{2} (OK

[NTG-context] usage of conversion in \date

2023-11-28 Thread Peter Münster
end end } \stopluacode \def\ier{\highordinalstr{er}} \mainlanguage[fr] \defineconversion[frd][\FRdate] \setuplanguage[fr][date={day:frd,\ ,month,\ ,year}] \starttext Conversion: \convertnumber{frd}{1}, \convertnumber{frd}{2} (OK)\\ Dates: \date[d=1], \date[d=2] (not OK) \stoptext --8<

Re: [NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2022-12-06 Thread Hans Hagen via ntg-context
On 12/6/2022 10:04 PM, Rik Kabel via ntg-context wrote: On 2022-12-06 15:32, Hans Hagen via ntg-context wrote: On 12/6/2022 9:06 PM, Rik Kabel via ntg-context wrote: \definelabel[X][text=] \startTEXpage[offset=1cm]    \X\X[a]\X[b]\X\par    \convertnumber{R}{\ref[number][a]}    \convertnumber

Re: [NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2022-12-06 Thread Rik Kabel via ntg-context
On 2022-12-06 15:32, Hans Hagen via ntg-context wrote: On 12/6/2022 9:06 PM, Rik Kabel via ntg-context wrote: \definelabel[X][text=] \startTEXpage[offset=1cm]    \X\X[a]\X[b]\X\par    \convertnumber{R}{\ref[number][a]}    \convertnumber{G}{\ref[number][b]} \stopTEXpage maybe like

Re: [NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2022-12-06 Thread Hans Hagen via ntg-context
On 12/6/2022 9:06 PM, Rik Kabel via ntg-context wrote: \definelabel[X][text=] \startTEXpage[offset=1cm]   \X\X[a]\X[b]\X\par   \convertnumber{R}{\ref[number][a]}   \convertnumber{G}{\ref[number][b]} \stopTEXpage maybe like this: \definelabel[X][text=] \startTEXpage[offset=1cm] (\X

Re: [NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2022-12-06 Thread Rik Kabel via ntg-context
On 2022-01-19 12:39, Rik Kabel via ntg-context wrote: This is still a problem with the current standalone. \definelabel[X][text=] \startTEXpage[offset=1cm]   \X\X[a]\X[b]\X\par   \convertnumber{R}{\ref[number][a]}   \convertnumber{G}{\ref[number][b]} \stopTEXpage

Re: [NTG-context] help with facing page image

2022-03-07 Thread jbf via ntg-context
artchapter[title={Chapter \convertnumber{word}{\recurselevel}}] \input knuth \ifnum\headnumber[chapter]=5 {\bfd five} \fi \blank \input tufte \blank \input ward \blank \ifnum\recurselevel=5 \page \input zapf

Re: [NTG-context] help with facing page image

2022-03-07 Thread jbf via ntg-context
uphead [chapter] [page=yes, before=\directsetup{chapter:before}, aftersection=\directsetup{chapter:after}] \starttext \dorecurse{10}{ \startchapter[title={Chapter \convertnumber{word}{\recurselevel}}] \input knuth \ifnum\headnumber[chapter]=5 {\

Re: [NTG-context] help with facing page image

2022-03-06 Thread śrīrāma via ntg-context
{ \startchapter[title={Chapter \convertnumber{word}{\recurselevel}}] \input knuth \ifnum\headnumber[chapter]=5 {\bfd five} \fi \blank \input tufte \blank \input ward \blank \ifnum\recurselevel=5 \page \input zapf

Re: [NTG-context] help with facing page image

2022-03-06 Thread jbf via ntg-context
stopsetups \setuphead [chapter] [page=yes, before=\directsetup{chapter:before}, aftersection=\directsetup{chapter:after}] \starttext \dorecurse{10}{ \startchapter[title={Chapter \convertnumber{word}{\recurselevel}}] \input knuth \blank \i

Re: [NTG-context] help with facing page image

2022-03-06 Thread śrīrāma via ntg-context
ter[title={Chapter \convertnumber{word}{\recurselevel}}] \input knuth \blank \input tufte \blank \input ward \blank \ifnum\recurselevel=5 \page \input zapf \input zapf \fi \stopchapter } \stoptext %%% EOF

Re: [NTG-context] help with facing page image

2022-03-06 Thread śrīrāma via ntg-context
s chapter:after \doifoddpageelse{} {\page[empty]} \stopsetups \setuphead [chapter] [page=yes, before=\directsetup{chapter:before}, aftersection=\directsetup{chapter:after}] \starttext \dorecurse{10}{ \startchapter[title={Chapter \convertnumber{word}{\recurselevel}}]

Re: [NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2022-01-19 Thread Rik Kabel via ntg-context
This is still a problem with the current standalone. \definelabel[X][text=] \startTEXpage[offset=1cm]   \X\X[a]\X[b]\X\par   \convertnumber{R}{\ref[number][a]}   \convertnumber{G}{\ref[number][b]} \stopTEXpage %% The above example fails to compile when there is no tuc

Re: [NTG-context] Changed behavior from \convertnumber{arabicdecimals}{..} as a textcommand for note

2022-01-16 Thread musa furber via ntg-context
[arfootnote] [before=\setlatin, alternative=text, ] \setupnote [arfootnote] [headstyle={\switchtobodyfont[amiri]}, textcommand=\footnotenotenumbercommand, alternative=text, ] \protected\def\footnotenotenumbercommand#1{{\high{({\convertnumber{arabicdecimals}{#1

Re: [NTG-context] Changed behavior from \convertnumber{arabicdecimals}{..} as a textcommand for note

2022-01-15 Thread Hans Hagen via ntg-context
). \setupnote [arfootnote] [   headstyle={\switchtobodyfont[kitab]},   textcommand=\footnotenotenumbercommand,   alternative=text,   ] \define[1]\footnotenotenumbercommand{{\high{(\convertnumber{arabicdecimals}{#1})}}} Since the update, for the 123rd footnote, I now get `(123arabic)` instead of `(١٢٣

[NTG-context] Changed behavior from \convertnumber{arabicdecimals}{..} as a textcommand for note

2022-01-14 Thread musa furber via ntg-context
]}, textcommand=\footnotenotenumbercommand, alternative=text, ] \define[1]\footnotenotenumbercommand{{\high{(\convertnumber{arabicdecimals}{#1})}}} Since the update, for the 123rd footnote, I now get `(123arabic)` instead of `(١٢٣)`. Elsewhere, I do get the expected output (i.e. `١٢٣٢`) when calling

Re: [NTG-context] Get Current Section Number

2022-01-09 Thread Wolfgang Schuster via ntg-context
] [page=no] \startdocument [title={Dummy title}] \dorecurse{5}   {\startchapter[title={Chapter \convertnumber{word}{#1}}]    \samplefile{lorem}    \stopchapter} \stopdocument Wolfgang ___ If your question

Re: [NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2021-10-28 Thread Rik Kabel via ntg-context
ble glue units , pointing to the second \convertnumber line. \definelabel[XX]%[text=,before=,after=,alternative=inright]     \startTEXpage[offset=2em]      abc\XX[xx]\par      \ref[number][xx] ·      \convertnumber{r}{1} ·      \convertnumber{R}{\ref[number][xx]}     \stopTEXpage In this case I

Re: [NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2021-10-28 Thread Hans Hagen via ntg-context
ond \convertnumber line. \definelabel[XX]%[text=,before=,after=,alternative=inright] \startTEXpage[offset=2em]  abc\XX[xx]\par  \ref[number][xx] ·  \convertnumber{r}{1} ·  \convertnumber{R}{\ref[number][xx]} \stopTEXpage In this case I am trying to display with roman numer

Re: [NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2021-10-27 Thread Rik Kabel via ntg-context
, The following fails with ConTeXt  ver: 2021.10.24 21:45 MKIV but works with the companion LMTX. The error message is:tex error   > tex error on line 6 in file G:/TestConTeXt/convert.tex: ! Incompatible glue units , pointing to the second \convertnumber line. \definelabel[XX]%[text=,bef

[NTG-context] Convertnumber with \ref[number] fails in MkIV, works in LMTX

2021-10-27 Thread Rik Kabel via ntg-context
Hello list, The following fails with ConTeXt  ver: 2021.10.24 21:45 MKIV but works with the companion LMTX. The error message is:tex error   > tex error on line 6 in file G:/TestConTeXt/convert.tex: ! Incompatible glue units , pointing to the second \convertnumber line. \definela

Re: [NTG-context] A book with sections

2021-10-24 Thread Duncan Hothersall via ntg-context
,2mm) withpen pensquare scaled 1.5mm ; >draw (0,0)--(TextWidth,0) withpen pensquare scaled 1.0mm ; >clip currentpicture to unitsquare yscaled 1cm xscaled TextWidth > \stopMPcode > \stopsetups > > \define[2]\placePartTitle{\midaligned{#2}} > %% The above line is w

Re: [NTG-context] A book with sections

2021-10-23 Thread Bruce Horrocks via ntg-context
MPcode \stopsetups \define[2]\placePartTitle{\midaligned{#2}} %% The above line is what I use. You want Roman numerals so maybe adapt it to: %% \define[2]\placePartTitle{\midaligned{\convertnumber[Romannumerals][#1] #2}} \definehead [Part] [part] \setuphead[Part] [ page=right, placehe

Re: [NTG-context] Headline with numbers in margin doubleside layout

2021-09-14 Thread juh via ntg-context
pagenumbering >   [alternative=doublesided] > > \showframe > > \starttext > \dorecurse{10}{\expanded{\chapter{Chapter > \convertnumber{word}{\recurselevel > \stoptext this looks interesting, but it's not quite what I want. I think I would like to have a different solutio

Re: [NTG-context] Headline with numbers in margin doubleside layout

2021-09-13 Thread Wolfgang Schuster via ntg-context
this? \setuphead   [chapter]   [page=yes,    alternative=inmargin,    location=outer,    align=outer] \setuppagenumbering   [alternative=doublesided] \showframe \starttext \dorecurse{10}{\expanded{\chapter{Chapter \convertnumber{word}{\recurselevel \stoptext Wolfgang

Re: [NTG-context] color conversion eats note

2021-06-27 Thread Wolfgang Schuster
rgb=no,conversion=no] %\setupcolors[state=stop,conversion=no] \setcolormodel[none] \starttext \dorecurse{20}{\convertnumber{word}{#1} }% \color[red]{not a number} \dorecurse{20}{\convertnumber{word}{#1} } \stoptext Wolfg

Re: [NTG-context] Verbose numbers in swedish

2021-04-17 Thread peter kvillegard
gt; > > MWE where I expect the word "ett" instead of "1": > > \mainlanguage[sv] > > \starttext > > \convertnumber{words}{1} > > \stoptext > You have to remake the format: > > context --make > > (I'll check the code and add it to the distribut

Re: [NTG-context] Verbose numbers in swedish

2021-04-17 Thread Hans Hagen
d point me in the right direction. There must be some step that I'm missing. Thank you. MWE where I expect the word "ett" instead of "1": \mainlanguage[sv] \starttext \convertnumber{words}{1} \stoptext You have to remake the format: context --make (I'll check the code and add it to

Re: [NTG-context] Verbose numbers in swedish

2021-04-17 Thread Wolfgang Schuster
d point me in the right direction. There must be some step that I'm missing. Thank you. MWE where I expect the word "ett" instead of "1": \mainlanguage[sv] \starttext \convertnumber{words}{1} \stoptext ConTeXt doesn't use the source files itself when you produce a document but use

[NTG-context] Verbose numbers in swedish

2021-04-17 Thread peter kvillegard
p that I'm missing. Thank you. MWE where I expect the word "ett" instead of "1": \mainlanguage[sv] \starttext \convertnumber{words}{1} \stoptext attachment_core-con.lua Description: Binary data __

Re: [NTG-context] set fallback in \definefont

2021-02-15 Thread Mohammad Hossein Bateni
> > \definefontsynonym >[AnotherFontMain] >[file:texgyrepagellaregular] > [fallbacks=AnotherFontFallback] > > \definefont [AnotherFont] [AnotherFontMain*default] > > \starttext > > \dorecurse{26}{\convertnumber{A}{\recurselevel}\space}\par > \dorecurse{

Re: [NTG-context] set fallback in \definefont

2021-02-15 Thread Wolfgang Schuster
] \definefont [AnotherFont] [AnotherFontMain*default] \starttext \dorecurse{26}{\convertnumber{A}{\recurselevel}\space}\par \dorecurse{26}{\convertnumber{a}{\recurselevel}\space} \AnotherFont \dorecurse{26}{\convertnumber{A}{\recurselevel}\space}\par \dorecurse{26}{\convertnumber{a}{\recurselevel

[NTG-context] Part label and chapter numbers

2021-01-03 Thread jbf
thought I could do it with \setuphead   [chapter]   [deepnumbercommand=\convertnumber{words}] but this throws an error. How do I achieve this? I want Chapter One, not Chapter 1.1 Issue 3 might already be solved once I resolve Issue 2! But given that I have parts, the chapters at the moment

Re: [NTG-context] Issue with tex.romannumeral output

2020-11-25 Thread Jairo A. del Rio
that’s to mimic old > typesetting (very specific case for sure :-). > > Ie 118 -> cxiij > > Is there a way to do this with convertnumber anyhow ? > > > > *De : *Wolfgang Schuster > *Envoyé le :*mercredi 25 novembre 2020 20:11 > *À : *mailing list f

[NTG-context] RE : Issue with tex.romannumeral output

2020-11-25 Thread Joseph
Yes, I replace last ‘i’ with a ‘j’ in roman number, that’s to mimic old typesetting (very specific case for sure :-).Ie 118 -> cxiijIs there a way to do this with convertnumber anyhow ? De : Wolfgang SchusterEnvoyé le :mercredi 25 novembre 2020 20:11À : mailing list for ConTeXt user

Re: [NTG-context] Issue with tex.romannumeral output

2020-11-25 Thread Wolfgang Schuster
Joseph schrieb am 25.11.2020 um 19:51: Dear list, Following MWE outputs only ‘m’ characters (with latest upload). Is there a reason why you don't use the conversion mechanism? \starttext \convertnumber{r}{7} \cldcontext{converters.convert("r",7)} \stoptext

[NTG-context] Two questions concerning numerals in ConTeXt

2020-06-01 Thread Jairo A. del Rio
Hi, everybody. I expect you to be safe. I found the following issues. *First. *The following gives wrong results for Spanish numbers \mainlanguage[es] \starttext \convertnumber{words}{100} %Prints "ciento" instead of "cien" \convertnumber{words}{200} %Prints "do

Re: [NTG-context] two additional pagenumber series

2020-04-29 Thread Wolfgang Schuster
\convertnumber{word}{#1}} \dorecurse{5} {\section{Section \convertnumber{word}{##1}} \dorecurse{\numexpr#1+##1\relax}{\samplefile{lorem \stoptext Wolfgang ___ If your question is of interest to others

Re: [NTG-context] notes in the margin

2019-10-04 Thread Henning Hraban Ramm
k for this project I'm working on, at least. > > %%% Start MWE > > \setuplayout[ > topspace=0.722in, > header=0.311in, > footer=0.622in, > width=4.211in, > height=9.622in, > backspace=1.311in, > rightmargin=1.8in, > margin

Re: [NTG-context] notes in the margin

2019-10-03 Thread Andres Conrado Montoya
] \definecounter[marginales][way=bytext,prefix=no] \def\romanMarginales{\convertnumber{r}{\rawcountervalue[marginales]}} \def\marginal{\dosingleempty\doMarginal} \def\doMarginal[#1]#2{% \incrementnumber[marginales] \iffirstargument \high{\romanMarginales}\inouter[#1]{\romanMarginales.\ #2} \else

Re: [NTG-context] textext within ConTeXt

2019-03-03 Thread Mohammad Hossein Bateni
:53 -0500 > Mohammad Hossein Bateni wrote: > > > Hi, > > > > I can't understand why the following code does not work. Could someone > > help me out here? > > > > \starttext > > \startMPpage > > draw textext("\convertnumber{r}{12}"); &

Re: [NTG-context] textext within ConTeXt

2019-03-03 Thread Alan Braslau
On Sun, 3 Mar 2019 12:52:53 -0500 Mohammad Hossein Bateni wrote: > Hi, > > I can't understand why the following code does not work. Could someone > help me out here? > > \starttext > \startMPpage > draw textext("\convertnumber{r}{12}"); > dr

[NTG-context] textext within ConTeXt

2019-03-03 Thread Mohammad Hossein Bateni
Hi, I can't understand why the following code does not work. Could someone help me out here? \starttext \startMPpage draw textext("\convertnumber{r}{12}"); draw textext("\convertnumber{r}{" & "12" & "}"); \stopMPpage \stoptext The first dra

Re: [NTG-context] index with more than one column?

2018-08-26 Thread Wolfgang Schuster
,alternative=A] On 26 Aug 2018, at 17:43, Wolfgang Schuster <mailto:wolfgang.schuster.li...@gmail.com>> wrote: The real question is why do you get an index without two columns. \starttext \dorecurse{26}{\convertnumber{a}{#1}\expanded{\index{\convertnumber{a}{#1 \placeregister[in

Re: [NTG-context] index with more than one column?

2018-08-26 Thread Wolfgang Schuster
The real question is why do you get an index without two columns. \starttext \dorecurse{26}{\convertnumber{a}{#1}\expanded{\index{\convertnumber{a}{#1 \placeregister[index]%[n=3] \stoptext Hans van der Meer schrieb am 26.08.18 um 17:37: How do I produce an index with more than one

Re: [NTG-context] defining a comamnd as variable which behaves as constant

2016-04-10 Thread Wolfgang Schuster
Pablo Rodriguez <mailto:oi...@gmx.es> 10. April 2016 um 00:00 Dear list, I have the following document: \mainlanguage[es] \starttext \startTEXpage[offset=1em] \dorecurse{27}% {\def\abcd{\convertnumber{a}{\recurselevel}}% \dorecurse{27}% {\abcd\convertnumber{a}{\recurselevel} }\par} \stopT

Re: [NTG-context] defining a comamnd as variable which behaves as constant

2016-04-09 Thread Aditya Mahajan
On Sun, 10 Apr 2016, Pablo Rodriguez wrote: Dear list, I have the following document: \mainlanguage[es] \starttext \startTEXpage[offset=1em] \dorecurse{27}% {\def\abcd{\convertnumber{a}{\recurselevel}}% \dorecurse{27}% {\abcd\convertnumber

[NTG-context] defining a comamnd as variable which behaves as constant

2016-04-09 Thread Pablo Rodriguez
Dear list, I have the following document: \mainlanguage[es] \starttext \startTEXpage[offset=1em] \dorecurse{27}% {\def\abcd{\convertnumber{a}{\recurselevel}}% \dorecurse{27}% {\abcd\convertnumber{a}{\recurselevel} }\par} \stopTEXpage

[NTG-context] Two coexisting number conversions (in headers and in texts)

2014-05-14 Thread Maggyero
Try this: \setupheadertexts[{\convertnumber{Romannumerals}{\namedheadnumber{chapter}}\quad\getmarking[chapter]}] Thanks Wolfgang! ___ If your question is of interest to others as well, please add an entry

[NTG-context] Two coexisting number conversions (in headers and in texts)

2014-05-09 Thread Maggyero
in the text (not in the header). For the moment I can achieve only the chapter numbering for the text but not for the header: \define[1]{\myconversion}{\ifcase #1\relax \or First\else \convertnumber{Romannumerals}{#1}\fi} \defineconversion[myconversion][\myconversion] \setuphead[chapter][conversion

Re: [NTG-context] Getting the current chapter number in the TOC

2014-04-17 Thread Wolfgang Schuster
\relax % 0 \or First% 1 \else \convertnumber{Romannumerals}{#1}% \fi} \defineconversion[Weirdnumber][\Weirdnumber] \defineconversionset[Weirdchapter][number,Weirdnumber][number] \setuplist[chapter][width=3em,numberconversionset=Weirdchapter] \starttext \completecontent

Re: [NTG-context] \convertnumber with macro parameter

2013-06-12 Thread Jan Pohanka
Has to be \defineheadalternative: \defineheadalternative[mysection][renderingsetup=mysection] \startsetups[mysection] \vbox\bgroup \headsetupspacing \strut\headnumbercontent\par \begstrut\headtextcontent\endstrut \egroup \stopsetups \setuplabeltext[en][section={, Section}]

[NTG-context] \convertnumber with macro parameter

2013-06-11 Thread Jan Pohanka
Hi, just another newbie question \setuphead[section] [command=\MyCommand] \define[2]\MyCommand% {\convertnumber{I}{#1} --- #2} \convertnumber does not work on command parameter. What am I doing wrong? I know that I can use /conversion/ key in setuphead, but I need slightly more

Re: [NTG-context] \convertnumber with macro parameter

2013-06-11 Thread Wolfgang Schuster
Am 11.06.2013 um 14:22 schrieb Jan Pohanka xhpoha...@gmail.com: Hi, just another newbie question \setuphead[section] [command=\MyCommand] \define[2]\MyCommand% {\convertnumber{I}{#1} --- #2} \convertnumber does not work on command parameter. What am I doing wrong? I know

Re: [NTG-context] \convertnumber with macro parameter

2013-06-11 Thread Jan Pohanka
\convertnumber does not work on command parameter. What am I doing wrong? I know that I can use /conversion/ key in setuphead, but I need slightly more complicated command. Use \setuphead[section][conversion=I], you can't use \convertnumber because the first argument is the formatted (styles

Re: [NTG-context] \convertnumber with macro parameter

2013-06-11 Thread Wolfgang Schuster
Am 11.06.2013 um 14:36 schrieb Jan Pohanka xhpoha...@gmail.com: \convertnumber does not work on command parameter. What am I doing wrong? I know that I can use conversion key in setuphead, but I need slightly more complicated command. Use \setuphead[section][conversion=I], you can’t

Re: [NTG-context] \convertnumber with macro parameter

2013-06-11 Thread Jan Pohanka
\definesectionalternative[mysection][renderingsetup=mysection] \startsetups[mysection] \vbox\bgroup \headsetupspacing \strut\headnumbercontent\par \begstrut\headtextcontent\endstrut \egroup \stopsetups \setuplabeltext[en][section={}{Section]

Re: [NTG-context] \convertnumber with macro parameter

2013-06-11 Thread Wolfgang Schuster
Am 11.06.2013 um 15:53 schrieb Jan Pohanka xhpoha...@gmail.com: \definesectionalternative[mysection][renderingsetup=mysection] \startsetups[mysection] \vbox\bgroup \headsetupspacing \strut\headnumbercontent\par \begstrut\headtextcontent\endstrut \egroup \stopsetups

Re: [NTG-context] How do you customize the chapter number format?

2013-04-29 Thread Wolfgang Schuster
]\ChapterConversion {\convertnumber{Numbers}{#1}.0} \defineconversion[ChapterConversion][\ChapterConversion] \setuphead[chapter][conversion=ChapterConversion] \starttext \completecontent \chapter{First Chapter} \section{First Section} \stoptext Wolfgang

Re: [NTG-context] Set background color for a single page

2013-04-23 Thread Aditya Mahajan
Another alternative is to pick the color from a list using \convertnumber{colors}{userpage}, similar to the solution at http://tex.stackexchange.com/a/54062/323 Aditya ___ If your question is of interest to others

Re: [NTG-context] Set background color for a single page

2013-04-23 Thread Tim Li
set the titlepage yellow, page1 gray and page2 darkyellow. How can I achieve this? regrads, Tim See: http://thread.gmane.org/gmane.comp.tex.context/75726/focus=75743 Another alternative is to pick the color from a list using \convertnumber{colors}{userpage}, similar to the solution at http

Re: [NTG-context] [***SPAM***] Symbols for footnotes not working

2013-03-28 Thread Wolfgang Schuster
[footnote][numberconversion=dagger,alternative=text] Also I could find no explanations for what a set is, as in conversion=set 1 or 2 or 3 etc. What is set 1 or 2 or 3? A set is a list with symbols: \starttext \dorecurse {8}{\convertnumber{set 0}{\recurselevel}\quad}\par \dorecurse {9

Re: [NTG-context] Beginner question. Chapter heading in words

2012-11-12 Thread Sietse Brouwer
* looking for a place on the wiki were conversions are documented, I found http://wiki.contextgarden.net/Command/convertnumber. Seems fine. (Conversion and Conversions redirects there now.) * words and Words are now documented on that page, too. Hans: while I was there, I found a bug in the month

Re: [NTG-context] Bug in footnote conversion?

2012-11-01 Thread Procházka Lukáš Ing . - Pontex s . r . o .
://wiki.contextgarden.net/Command/convertnumber http://wiki.contextgarden.net/Command/defineconversion Best regards, Lukas -- Ing. Lukáš Procházka [mailto:l...@pontex.cz] Pontex s. r. o. [mailto:pon...@pontex.cz] [http://www.pontex.cz] Bezová 1658 147 14 Praha 4 Tel: +420 244 062 238 Fax

Re: [NTG-context] Bug in footnote conversion?

2012-10-31 Thread Wolfgang Schuster
-in number conversion? - If so, what are other built-in [number] conversion sets? Predefined are “set 0” till “set 3”. \starttext \dorecurse {8}{\convertnumber{set 0}{#1}\quad}\par \dorecurse {9}{\convertnumber{set 1}{#1}\quad}\par \dorecurse{12}{\convertnumber{set 2}{#1}\quad}\par \dorecurse{15

Re: [NTG-context] Setting options for every n-th row in natural TABLEs

2012-09-02 Thread Aditya Mahajan
[row][backgroundcolor={\convertnumber{triadcolors}{\getvalue{m_tabl_ntb_positive_row}}}] \stopsetups If I need rules, I guess I can explicitly check for the value of \m_tabl_ntb_postive_pow inside an overlay. Thanks

Re: [NTG-context] greek items broken:

2012-05-09 Thread Wolfgang Schuster
},\m{ζ}, \m{η},\m{θ},\m{ι},\m{κ},\m{λ},\m{μ}, \m{ν},\m{ξ},\m{ο},\m{π},\m{ρ},\m{σ}, \m{τ},\m{υ},\m{φ},\m{χ},\m{ψ},\m{ω}] %\setupbodyfont[lucidaot] \starttext \starttabulate \NC greek \EQ \dorecurse{24}{\convertnumber{greek}{\recurselevel} } \NC\NR \NC mathgreek \EQ \dorecurse{24

Re: [NTG-context] greek items broken:

2012-05-09 Thread Wolfgang Schuster
\setupbodyfont [computer-modern-unicode] \csname #1reeknumerals\endcsname{#2}% \egroup% } Use \switchtobodyfont for local font switches. \def\cmu_numerals#1#2% {\bgroup \switchtobodyfont[computer-modern-unicode]% \convertnumber{#1}{#2}% \egroup} Wolfgang

Re: [NTG-context] Bug in \setuplist

2012-03-15 Thread Wolfgang Schuster
\convertnumber but which numbers are wrong when you use your own command? Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman

Re: [NTG-context] Bug in \setuplist

2012-03-15 Thread Willi Egger
Hi, replying to my self: I was not aware of this macro \convert{new_form}{number_to_be_converted} So in the meantime the commands which give the correct result become: \unexpanded\def\Mychaptercommand#1#2#3{\blank CHAPTER~\convertnumber{R}{#1}.\blank{#2}.\hskip0.25\bodyfontsize} \unexpanded

[NTG-context] itemize with conversion

2011-12-29 Thread Herbert Voss
\@@cvordinal -\enordinaldaynumber \convertnumber ... 2\else 3\fi \fi \endcsname {#1} {\number #2} l.7 } \doconvertedstructurecounter ...!criterium , } )} \endgroup to be read again

Re: [NTG-context] Page numbering: conversion broken

2011-11-10 Thread Christian
Dear list, this \setuppagenumbering[conversion=romannumerals,left={--~},right={~--}] % taken from contextref.pdf does nothing in ConTeXt ver: 2011.09.12 22:49 MKIV, except adding the '–' left and right. The number is still Arabic. However this \convertnumber{r}{4} works

[NTG-context] Page numbering: conversion broken

2011-11-09 Thread Christian
Dear list, this \setuppagenumbering[conversion=romannumerals,left={--~},right={~--}] % taken from contextref.pdf does nothing in ConTeXt ver: 2011.09.12 22:49 MKIV, except adding the '–' left and right. The number is still Arabic. However this \convertnumber{r}{4} works as expected

Re: [NTG-context] Page numbering: conversion broken

2011-11-09 Thread Wolfgang Schuster
this \convertnumber{r}{4} works as expected. Is this fixed in a later beta? There is nothing to fix, the while numbering mechanism has changed in MkIV and you have to write now \setupuserpagenumber[numberconversion=romannumerals] or better (because you can set different conversion

Re: [NTG-context] Optimal way to defining of macros in Luacode in ConTeXt

2011-07-13 Thread Jaroslav Hajtmar
on the backslash? 3. Wolfgang write about using context command \convertnumber{R}{1400} and the corresponding syntax: context.convertnumber(R,1400) to roman converting. It is great, but I could not figure out how to use in combination with the above syntax (ie use case context.command) or find

Re: [NTG-context] Optimal way to defining of macros in Luacode in ConTeXt

2011-07-13 Thread Hans Hagen
. comment on the backslash? indeed 3. Wolfgang write about using context command \convertnumber{R}{1400} and the corresponding syntax: context.convertnumber(R,1400) to roman converting. It is great, but I could not figure out how to use in combination with the above syntax (ie use case

Re: [NTG-context] Optimal way to defining of macros in Luacode in ConTeXt

2011-07-13 Thread Jaroslav Hajtmar
...and \directlua \zerocount {#1 }} l.25 \stopluacode ? That category characters again? Comment character -- works differently in TEX file, and otherwise in the LUA file? Ie. comment on the backslash? indeed 3. Wolfgang write about using context command \convertnumber{R}{1400} and the corresponding

Re: [NTG-context] Optimal way to defining of macros in Luacode in ConTeXt

2011-07-12 Thread Wolfgang Schuster
the better syntax: context('\\def\\Mymacro\{arg of mymacro\}') or context(\\def\\test#1{#1}) etc... Exist other (best or most optimal) way to do? You can use “context.setvalue”. To convert numbers in different formats you can use the \convertnumber command. \starttext \startluacode

Re: [NTG-context] Layers again

2011-04-26 Thread Wolfgang Schuster
]{\ssd Test: \test}} \stopsetups \setupbackgrounds[page][background=test,setups=test] \starttext \dorecurse{12} {\def\test{\convertnumber{A}{\recurselevel}}% \dontleavehmode\page} \stoptext Wolfgang ___ If your

Re: [NTG-context] Layers again

2011-04-26 Thread Ian Lawrence
] \starttext \dorecurse{12}  {\def\test{\convertnumber{A}{\recurselevel}}%   \dontleavehmode\page} \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist

Re: [NTG-context] header entries semi-wrong

2011-03-10 Thread Willi Egger
,topspace=17mm, header=12pt,headerdistance=6pt, footer=36pt,footerdistance=0pt, location=middle,marking=off] \setupwhitespace[halfline] \setuppagenumbering [alternative=doublesided,location=] \setupheader[align=middle] \mainlanguage[de] \def\HeadL{Part {\convertnumber{Numbers

Re: [NTG-context] header entries semi-wrong

2011-03-10 Thread Steffen Wolfrum
,footerdistance=0pt, location=middle,marking=off] \setupwhitespace[halfline] \setuppagenumbering [alternative=doublesided,location=] \setupheader[align=middle] \mainlanguage[de] \def\HeadL{Part {\convertnumber{Numbers}{\namedheadnumber{chapter}}}\enskip\getmarking[EbeneEins]} \def\HeadR

Re: [NTG-context] header entries semi-wrong

2011-03-10 Thread luigi scarso
,headerdistance=6pt, footer=36pt,footerdistance=0pt, location=middle,marking=off] \setupwhitespace[halfline] \setuppagenumbering [alternative=doublesided,location=] \setupheader[align=middle] %\def\HeadL{Part {\convertnumber{Numbers}{\namedheadnumber{chapter}}}\enskip\getmarking

[NTG-context] header entries semi-wrong

2011-03-06 Thread Steffen Wolfrum
] \setuppagenumbering [alternative=doublesided,location=] \setupheader[align=middle] \def\HeadL{Part {\convertnumber{Numbers}{\namedheadnumber{chapter}}}\enskip\getmarking[EbeneEins]} \def\HeadR{\headnumber[section]\enskip\getmarking[section]} \setupheadertexts [\vtop{\startalignment

Re: [NTG-context] \stretched in chapter titles in MKII

2011-02-22 Thread Wolfgang Schuster
\convertnumber{tom}{\structurenumber} \setuphead [chapter] [ alternative=middle, style=\ssc, textstyle=\bf, numberstyle=\tf, textcommand=\ChapterTextCommand, numbercommand=\ChapterNumberCommand] \starttext \chapter{Test Chapter Title} \input knuth \stoptext

Re: [NTG-context] \stretched in chapter titles in MKII

2011-02-22 Thread Tom
] [One,Two,Three,Four,Five,.] \define[1]\ChapterTextCommand {\line{\expanded{\stretched{\structuretitle \define[1]\ChapterNumberCommand {\line{\expanded{\stretched{Chapter \convertnumber{tom}{\structurenumber} \setuphead [chapter] [ alternative=middle, style=\ssc

Re: [NTG-context] running headers on postponed makeup

2011-02-15 Thread Steffen Wolfrum
\stopalignment}] [pagenumber] [pagenumber] [\vtop{\startalignment[center]\KolumneL\stopalignment}] \def\KolumneL{{\convertnumber{Numbers}{\namedheadnumber{chapter}}.\,Teil:}\enskip\getmarking[EbeneEins]} \def\KolumneR{\headnumber[section]\enskip\getmarking[section]} \starttext \chapter{X

[NTG-context] Bug: delay in \getmarking

2010-12-17 Thread Steffen Wolfrum
=doublesided,location=] \setupheader[align=middle] \def\KolumneL{{\convertnumber{Numbers}{\namedheadnumber{chapter}}.\,Teil:}\enskip\getmarking[chapter]} \def\KolumneR{\headnumber[section]\enskip\getmarking[section]} \setupheadertexts [\vtop{\startalignment[center]\KolumneR\stopalignment

[NTG-context] countervalue section

2010-09-12 Thread Steffen Wolfrum
Hi all, how can I change a section's conversion (eg. for use in headertext). See minimal example below, please. Steffen === \starttext \chapter{Test} \headnumber[chapter]% now we have numbers % And just now we want to show the same as Characters not numbers: %\convertnumber{\Characters

Re: [NTG-context] countervalue section

2010-09-12 Thread Wolfgang Schuster
Am 12.09.2010 um 14:23 schrieb Steffen Wolfrum: Hi all, how can I change a section's conversion (eg. for use in headertext). \convertnumber{...}{\namedheadnumber{chapter}} or \convertnumber{...}{\placerawheadnumber[chapter]} Wolfgang

Re: [NTG-context] countervalue section

2010-09-12 Thread Steffen Wolfrum
Am 12.09.2010 um 18:28 schrieb Wolfgang Schuster: Am 12.09.2010 um 14:23 schrieb Steffen Wolfrum: Hi all, how can I change a section's conversion (eg. for use in headertext). \convertnumber{...}{\namedheadnumber{chapter}} or \convertnumber{...}{\placerawheadnumber[chapter

[NTG-context] Slovenian alphabetic itemize broken in MKIV

2009-09-05 Thread Mojca Miklavec
)} l.1 \convertnumber{a}{1} \doconvertedstructurecounter ...!criterium , } )} \endgroup to be read again \fi \doactualitemnumber ...rrentitemgroupcounter ]\fi \dohandleitemreference

Re: [NTG-context] Slovenian alphabetic itemize broken in MKIV

2009-09-05 Thread Peter Rolf
...phabetic(\number #1,sl)} l.1 \convertnumber{a}{1} \doconvertedstructurecounter ...!criterium , } )} \endgroup to be read again \fi \doactualitemnumber ...rrentitemgroupcounter ]\fi

Re: [NTG-context] Kerning

2008-11-13 Thread Wolfgang Schuster
} \processfile{tufte} \stoptext \def\Myheader#1#2% {\framed [width=0.60\textwidth, frame=off, align=middle] {\determineheadnumber[chapter] \expanded{\stretchednormalcase{CHAPTER~\convertnumber{englishnumbers}{\currentheadnumber}}} \blank#2}} \def\englishnumbers#1

Re: [NTG-context] Kerning

2008-11-13 Thread Bart C. Wise
=middle] {\determineheadnumber[chapter] \expanded{\stretchednormalcase{CHAPTER~\convertnumber{englishnumbers}{\curr entheadnumber}}} \blank#2}} \def\englishnumbers#1{ \ifcase#1 \or ONE\or TWO\or THREE\or FOUR\or FIVE\fi} \defineconversion[englishnumbers][\englishnumbers

Re: [NTG-context] vertical position of framed sucks!

2008-08-29 Thread Steffen Wolfrum
to \hsize\bgroup% \tbox{\midaligned \framed[offset=-0.5pt,frame=on,align=middle,width=0.85\textwidth] {{\FuenfCommand{\convertnumber{characters} {\countervalue{@@sesection-6{\kern0.75em}#2}}% \egroup} \setuphead[EbeneFuenf][command=\CurrentEbeneFuenfNumber]% using this command moves

Re: [NTG-context] vertical position of framed sucks!

2008-08-29 Thread Peter Rolf
.} \def\CurrentEbeneFuenfNumber#1#2% {\hbox to \hsize\bgroup% \tbox{\midaligned\framed[offset=-0.5pt,frame=on,align=middle,width=0.85\textwidth]{{\FuenfCommand{\convertnumber{characters}{\countervalue{@@sesection-6{\kern0.75em}#2}}% \egroup} \setuphead[EbeneFuenf][command

Re: [NTG-context] vertical position of framed sucks!

2008-08-29 Thread Steffen Wolfrum
,previousnumber=yes] \def\FuenfCommand#1{#1.} \def\CurrentEbeneFuenfNumber#1#2% {\hbox to \hsize\bgroup% \tbox{\midaligned \framed[offset=-0.5pt,frame=on,align=middle,width=0.85\textwidth] {{\FuenfCommand{\convertnumber{characters} {\countervalue{@@sesection-6{\kern0.75em}#2}}% \egroup

  1   2   >